package edu.nf.db.util.result;

import edu.nf.db.util.ResultSetHandler;
import edu.nf.db.util.RowProcessor;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * 将单条记录转换为Object[]
 *
 * @author zhu
 * @date 2024-05-08
 */
public class ArrayListHandler extends AbstractListHandler<Object[]> {

    @Override
    public Object[] handleRow(ResultSet rs) throws SQLException {
        return RowProcessor.toArray(rs);
    }
}
